Controllers should not change global input without very good reason. I would set default view to input in component bootstrap file (components/com_config/config.php) instead of in here.