Added list switching functionnality on back-end and frontend javascript