Added dialogs. Added links between Activites and dialogs.