implementation of overlay menu