fix UI in iphone and add app-level auto login