working on pop-up function for registered users