added touch end to sidebar script