fix div element still being selected