added popup with show and hide functionality