Added dynamic sidebar config and tab switching