Added homescreen and back handling