added ajax/modal functionality for contacts and groups on the main app page