refactoring feed sidebar