dashboard: handle warning for undefined variables, add missing form tag