Refactored common elements into sidebar