modal code and working modal example