used class button instead of submitButton as discussed