working on handling changes in orientation