Cleans up the home page implementation.