added behavior to controller