add dynamic body id based on state