fix many bugs
removed unused functions & panels
status: working