adding menu and some patterns