Added modal code