- I hid the grid but there is a chance it will never be shown again. The call
  to the function to show the grid was in a if-statement block, moving it outside
  fixed it. Silly me.

- Small modifications to comments.