bug fix, set layout for medium screen size