refactor alert views