Making sure only active layout updates are saved to db.
Fixes for default value of maxwidth type