Made GridLayout functional