Implementation of login popup + fancybox flicker fixes