add discover controller to main file