Moved username and CSS class formatting to its own shared fragment