changed startActivity ( MainActivity to CreateAlarmActivity ) to startActivityForResult and added onActivityResult to MainActivity