- code cleanup
- implement alert box utility method