reimplemented onclick attribute