push all error handling to a single place
display error messages in UI
clear the error messages when it is clicked
hide templates until angular is loaded