fix actions handling in SPA mode