Removed the template extends out of the main constructor and turned it into an ojb as we do not need this if show is not called