fixed assigning layout