layout changed a bit
Alert Box added for out of bound coordinates