Added event listeners to buttons, modfied the way 'tasks_table' is constructed. The new method of construction is based on Salter's recommendation