Added pop up functionality