refactoring

use event.preventDefault(); instead of returning false