add edit and destroy action. Add tests