Add edit and delete function in view activity

fix UI also