Keep widget ordered

now widget order is saved in localstorage too.
Had to recode the way hidden widgets were stored.