moving index to main SPA applicaiton