Applying grid layout with tooltips