the attribute "onclick" is not worked well