GridLayout to autofit

Change gridlayout column to autofit instead of hardcode.