refactor methods to update top bar and replay buttons.