Adding code for mixed layout form