Add base class to the layouts