Fix, make the app not reload each open and close.