Added full pagination and auto-updating javascript in the list template