wrapped onclick with function tag for add element