Change setup stack states with signals

This pull request adds the following functionality:

- Change stack states with signals so that it can be controlled whether changing from one state to another is permitted or not for the stack.

My ICLA is listed under "Furkan Bıçak"