adapting project for scroll widget