Resolving the view creating issue while creating route