Rearrange the code to put forms above the index