Corrected nextbox function and added nextboxfor