created basic function layout