Added close popup method