finished main ui
work on detail