added support for custom submit buttons

Signed-off-by: Wouter Vroege <wouter@woutervroege.nl>