Open and close colour select context menu. Saving state of notes when user leaves page.