rafactorign of stylesheet tag methods