Fixed title problem; need to fix global ifs