adds main class tag