fix coffeescript when form is not displayed