add loading indicator
add loading template
fixed sign out button bug