Loading a template completed

-Added the remaining logic to actualy load the template into
the current activity/layout