modify sidebar and view