added loader to edit view