fixed my shitty syntax
deslect on click outside, removed unneccesary div