add show and hide callbacks for keyboard adjustment