add navbar style and conditions to views