state saving functionality "done"

will need reworked when tabs happen
also made maximize button prettier