moved form into pre, move id and submit action to form