getting border and selection working