added menu collapse feature