Added edit sidbar tab
added logic for sidebar