added support for updating grid buttons after the screen was rotated