Added max out value and added a css class on the html tag when loading is active