Implementing overlay hide method