Started working on edit view, pending requests controller is not working properly