removed few more lines of e.preventDefault() missed before