add marionette.ui spy
refactoring inner methods