Added controller and commands for the publish dialog