Updated sample to support proper keyboard height

Also added dismiss option