adding an activity and layout for view activity.