added delegate method, if transition between view controllers is finished