fixed layout calling res to /res directory