Fixed home and show template
Added functionality for local and extern instance