Implemented all operations and most parts of the  ui