added edit and update with tests to dashboard