- add confirmation dialog for logout
- re-work preview fetching