Custom popup working