added validation pattern to the integer param
added confirmation and error dialog