NavigationView and TabBarView

Hello,

I am very new to vaadin and using 7.2.6 version. I need help on the following.
Only on successful login, along with navigating to the next view I want to set the TabBar simultaneously.
For example:
if(username.equals(“admin”) && password.equals(“admin”)){
getUI().setContent(new FooterBar());
VaadinService.getCurrentRequest().getWrappedSession().setAttribute(“myvalue”, username);
nameField.setValue(“”);
passwordField.setValue(“”);
getNavigationManager().navigateTo(new FieldView());
}
However, on button click, either the footer gets set or gets navigated to next view.
How do I achieve both??
Thanks.