preliminary gui code template