finish the project.to add view table function if time is enough