refactoring discussion UI and home