Added loading css. refactored css/html