fixing problems in layout