added loading of custom selection data
fixed execution order bug

this was causing the grid to be drawn twice