added touch recognition for class blocks