added functions to select and unselect divs