added menu handler. The rest is yet to come.