tidied monome handling code and implement focus-based message gating