Open menu in gui added. Works fine. Error in loading view fixed.