added functionality for contact popup