preventing form default behavior
renaming function