Changed button button tag to div tag. Removed event.preventDefault.