Revert "Fixing bug with modal, toastr and noty"

This reverts commit bbc251cd1710f15209c45919c05892edf4770881.