update classnames and use preventDefault instead of return false