rendering while selection implemented correctly.
workaround for wierd horizontal line making after double clicking after selection