Adding events on vars portion start and end