added selectonfocus option