Adding support for blur and focus events