added orientation and soft redirect