first header parse code, show loading status on button