Cleanup code. fix touchend click.