fix some issues

1) added class attribute (.onpress-active/.onpress-inactive) for css customization
2) fixed the "ghost click" issue