added func to main page