Unnecessary call of preventDefault removed