add the state loader on top of page