AlarmActivity refactoring