get_candidate details ui and rake task to create states