use seperate method to assign menu bar html class