using css class as selector instead of id for events