Added error checking to check if requested controller is valid or not before dispatching.