Set the app init at the right place