Added function to enable popup when touched