Added sidebar creation functionality