Implemented off-click directive