Added edit and delete functions to the gridview

Be careful with delete as there's no confirmation dialogue.