added some optimisation and wanted

wanted to add when to activate the interface but having some problems
with the system given errors on drawing things - content hub uncomment
the whole function to check the error