Cleanup some grid code, improve rating interaction.