How to use params when changing states