changed setfocus to raise since the former wasn't working as desired