fixed form reload, broken after javascript refactor