destroy modal when leaving the page (see http://forum.ionicframework.com/t/modals-persist-between-states/1093 for details)