Created restartApp() function to handle a "soft" restart