Adding some helper methods to task model
Adding some alert messages