added basic horizontal expand and contract methods to controller.