implemented theme config fields and fixed a bug (selected theme wasn't being saved on db)