Added a function to reset the view paths array