added user functionality, including control for edit and delete.