Remove global statement for lst and view