refactor basic configuration and place back button handler in helpers
don't use refresh trick when in server mode