made functions index a button