init states after template is loaded
dont search for "/" in event name