Add local variables for sidebar to know current step