Started task page and some refactoring in main.