correct sidebar and loading errors and queries