Added pop-up close actions with jQuery