Fix functions for adding, editing, marking complete tasks on the dashboard