made onclick actually work in demo