fix for issue #15 Restart moves the cursor out of the typing area, by ad...

fix for issue #15 Restart moves the cursor out of the typing area, by adding a focus at the end of the refresh flow