updated main/index_contoller to return value to echo it