removed unnecessary if { }, and refactoring of onCreate to display intent