made controller a spring bean