made layout relative