Declaring and initializing the objects from the layout