cleaned up sidebar and connection interaction