Fixed add a task form

Add a task form hadn't been updated with new JavaScript functions
Noticed that the app is very buggy in mobile view, needs fixing