added getActiveAlarm function to check active alarm of smartpal