made routes restful and added edit task functionality