Made some changes to admin sidebar code depending on installed plugins