refactored out anonymous inner classes
automatically bring up soft keyboard