added modal layer