Clean up formatting and initialise the background on first launch