using style sheets instead of binding events