Removed new flag instances

Removed new flag instances
Created new alarm method and open alarm settings method