deleted not used button, fixed a bug.