update logic for UI
update iphone UI & add hide keyboard function