basiclly finish all the functions

start to adjust ui