added progress bars and deactivate buttons when they shouldn't be clicked.