Fixed implementation of flatmenu and viewrender
removed debuglogs