minor js change for multi view support