Setting focus at the end of a preloaded program