Cleanup page when changing page template in editor

Fixes playing audio continuously when changing page type in editor.