Complete add task functionality