modal changed to custom popup