refactor contact management page