adding realm controls