horizontal layout; mouse event processing fixes