Making notifyview secure