text selection issue fixed, added layout switch