updated index with button
added some functions for promto
added some functions for promto