cleaned up how the clickaway mixin works