added select and unselect, separated js from html