improve accesiblity of edition switch
use a variable for the colour
make comments clearer
remove semicolons