improved open keyboard for smartphones
code refactoring