wokring on passing alarm to view