added if stmt to change picId for ajax url