Move getList function into newly created preview lib