Companion automaticly exit

Hello,I am bored with kodular companion.It automaticly close application when I refresh screen or try to go one page to another by clicking a button I codded.Please help me…