made interface subscribe to pubsub to show progress bar on mining