Make index.html have different structure on desktop and cocoon
fix back button and pause bugs