adjust all logic

add models、categories to make program look nice.and… more….