[FORM] move code to main function and reindent