Set style events in directive (get out of callback functions)