updated alarm controller file