added reorder methods to controller and tablegateway