add edit and delete functionality

The only thing is to make it clean, and instead of reload page to
refresh object