add @Controller annotation and IlligalException for controller