added simulation and made the index page use buttons