styled overlay and added a transition