defining layout