Use service locator for loading layouts