add save
make result panel
result panel works
fix logic error