replace '#' by 'javascript:;' to prevent page from moving up after  submitting.