adjust login logic
add settings api
login first before enter some pages
add launch view