Made transition between views