added lead creating to pages controller