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