moved binding to controller