made the sync button on user page to work with the selection array function