Code for the alarm level analysis and starting work on the views