error-exit and success-exit apparently dont work with different screen sizes