working app with toggle buttons