update src element and toggle