added pop up functionality.