implement select layers by draging rectangle