Implemented manage_all_buttons function to enable or disable the buttons
depending on the execution of the app. Fixes #2