default case added in controller