Added code to hide soft-keyboard and support multiple screens