fix reponse with login in ajax call
modified print view