creating css state model