Update template to preload MainActivity in background (fix #62)