update ui to spa