added edit button and delete button

Nothing wrong with separating code out in logical blocks