Modified the contact.xml file and added exit dialog to the main activity