Removed defineUI and setup functions and replaced with onCreate