Polishing up interface by using javascript

instead of builtin form submits