Finalizing edit and delete functions, adding buttons