AContent front page code and style refactoring