rotation state saved to DB
changed galleria to load data from json instead of html markup