removed echo from build file
added destroy method to ViewBase