classList is not supported by Android 2.3 so I have changed the implementation