Add edit/update/delete function, refactored dashboard