Updating page through classes