Edit Miner UI

Move all code to MVC classeds. Miner UI class has only
constructors and init methods.
resolve problems