Added weak reference to presenting view controller
Added initial keyboard appearance handling code