added functionality to contacts page