some cleaning
fix bug: when add resource with tags, they are not displayed in the sidebar