change some stuff in restaurant model
added many new logics