Little changes setFlash function

- wrapped flash div
- added clearFlash function to clear flash message
- added callback function in addRemoveClass function
- added is-loading class
- added boolean to control timing flash animation