added customisation of baseClass and buttonBaseClass, added tests to cover the functionality