Added conditional code for the new network page sidebars