removed unneeded code + bugfix
changed StateAction into a class to be able to test if its null