new layout and new event handlers