Updated code so that the 'Delete' button when clicked on the rule listing page will now send an Ajax request to the server and will send a seperate response when the request is detected as an Ajax() request. Also for best practice I've added the 'use' statement for all used classes in the main controller files.