give if else on view defaultbase_header