I was trying to go with the same functionality that would do the pop up as well instead of just click the button and it goes to the view.
as the pop up displays the appropriate view I need, but would like to do it from a button instead of having the user click the print view in the top left or bottom left