move grid into its own control