Made popup close on scroll