Navigation through Session Events

I am not able to navigate to new page through system function which I implemented in Session Events (Message). What I am missing.
I have button, where I have written script to call message handle.


and Here is Session event Script

Session events don't have a single page scope, so cannot do navigation. Look at the requirements for system.perspective.navigate(). You will have to use a page ID with that.