finished up save and load state however still need to add an indeterminate bar