Add transitions to pages