changes mainlayout to hrlayout