removed js from print view and put it in app js file