adds methods to read layouts from json file instead of from the database