Load settings just once
temp move stuff related to displaying to a separate file