supporting int error handling in GUI