patching controller and view to edit priority