optlize js and home.php and change the bootstrap modal