Added smooth transition between views