abstracted opening template, add splash screen

abstracted the functions for opening a new template, added a splash
screen and icon