moved methods over to tags helper so that they can be called from  other controllers