refator metric problem
refactor alarm page