fix single page application process