check for null in menu... hopefully fix a nullpointer bug here.