change list length when edit bar is visible