fix missing onlick function