refactor active_tab method for a general purpose
fix double quotes
add active_tab in topbar menu
add active css class for topbar