Change sessions logic and render views