creating controls class