Move require to app controller