Abstractize the implementation of list with scroll hook
Signed-off-by: JohnMave126 <johnmave126@gmail.com>