Minor changes in code for compatibility in api level 3

RelativeLayout changed for LinearLayout.