use on-click style attributes instead of a single on attribute