add drawer function in index.php