make sure login view is removed correctly
add quit option