added change screen logic