refactoring
added method to get template for preview  and routing info
added preview template and adjusted preview component
added new build