Implemented default and cancel buttons. Fixes #30.