moved vertx to controller and added spinner