Selection border replacing