Change the controller for undo redo

Change the controller so that it will give the correct feedback message
when no action to be undone or redone