Restructure zoom code to MVVM model using eventhandler