Implemented basic SPA behaviour