Loads file when opened