Manipulation with "states" of DOM elements