changed frontend bean to spring bean