refactoring the creation of the radio buttons for the foreground shader
moving the UI building and UI updating part outside of the main class so to keep things a little more modular and light
minor comment addition
fix from Patrick - avoids error when clicking beyond the bottom-right corner of the grid