update flower controller to restful boilerplate