public function getCurrentStep()
    {  	if($_GET['step'])
	    {
	    	$this->currentStep=$_GET['step'];
	    	return $this->currentStep;
	    }
    	elseif($this->currentStep)
    	{
    		if($this->currentStep > $this->formRefs->count()){    			            			
    			return $this->formRefs->count();	
    		}else{
    			return $this->currentStep;	
    		}    		
    	}
    	else
    	{
	        $step = isset($_GET['step']) ? $_GET['step'] : 1;
	        $numForms = 0;
	        foreach ($this->formRefs as $formRef)
	            $numForms++;
	
	        if ($step < 1)
	            $step = 1;
	        if ($step > $numForms)
	            $step = $numForms;
	        $this->currentStep = $step;
	        return $step;
    	}
    }