Update app.py

UPDATING THE  handle_switch_features()