Added new sidebar function