Add an if statement to prevent backend from loading machines,images,sizes and locations twice on start up