code refactoring

* implemented a simple MVC pattern
* simplified the code to display tasks in taskList.jsp