update the layout to relativelayout and make the screen switchig work better