fixed bug with not setting grid size and buttons after screen changes