reworked the gui for the main page