Added default configuration and the button logic