Some fixes

- add form auto submit script.
- set redirect action layout to empty.