fix bug with adding or deleting search button; fix bugs for user with several labs