Removed dup binding and fixed submit bug