expander functions are now working properly with scrolling