Added inline editing to goals

Trying to copy and paste code over (even if it's your own code) is harder than coming up with it from scratch!

I'm developed inline editing before, for posts and comments, so it was just a matter of copy-pasting it over. But that was a few months ago and I forgot how the functions chained together already. It felt like working on someone else's code even though I coded it previously. And the uncertain feeling of pasting over something which you're not 100% sure how it works...