add alarms pagination system and tests