added focus method