Added edit functionality, bug 001: forgot to add name parameter to submit