added button functionality to the add task view controller and implemented task creation helper method