refactored ui and state managment
tunings and log messages