changed function name for bookmark state
get the state of compnents and use them for the bookmark