Prevent default event on popup call