Moved button outlining to its own function