moved the reference of view objects to code in onCreate