Refactor AlertFragment