Dynamics of a nonlinear time-dependent two two-level atoms in a two-mode cavity