drawing a selection rect