added fade in and out of popup