removed all attempts at checking availability via ajax and improved url parser