replaced with textbox
using text instead of val
minor changes
more logging
using value instead of method
cleaned up and readded pebble check
removed pebble check
fixed scope issues