Make edit and delete buttons functional