updated edit_sidebar