2 function changed

1. added confirm before submit
2. changed max class number