Need to find python method that is called while navigating from 1 unit to the other


I need to put in some additional logic in lms when a student navigates from 1 unit to the next. Can you please direct me to the file and the method that is called when a user changes units. Mainly the below buttons


Can someone please help me with this?