fix: trigger 'close' and 'clear' on views